/* Page-specific CSS retained from the original 6 page. */

:root {
            --pink: #ff85a2;
            --light-pink: #fff5f7;
            --success: #2ed573;
            --success-dark: #26af5f;
            --dark: #2d3436;
            --blue: #87CEEB;
            --stripe: repeating-linear-gradient(45deg, #e6e6e6, #e6e6e6 30px, #ffffff 30px, #ffffff 60px, #F0E39A 60px, #F0E39A 90px, #ffffff 90px, #ffffff 120px);
        }

body { font-family: "Quicksand", sans-serif; background: var(--stripe); background-attachment: fixed; margin: 0; display: flex; flex-direction: column; min-height: 100vh; }

.builder-grid { display: flex; gap: 30px; align-items: stretch; }

.controls { flex: 0 0 320px; max-width: 320px; background: #fff9f0; padding: 25px; border-radius: 25px; border: 2px solid #ffe8cc; display: flex; flex-direction: column; }

.preview-area { 
            flex: 1; background: #f8f9fa; border-radius: 30px; display: flex; flex-direction: column; 
            align-items: center; min-height: 600px; overflow: hidden; perspective: 2000px; 
            position: relative; padding-top: 20px; border: 2px solid #eee; 
        }

#containerScaler { 
            position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); 
            transform-style: preserve-3d; display: flex; justify-content: center; align-items: flex-end;
        }

.arch-layer-front { position: relative; z-index: 10; transform-style: preserve-3d; display: flex; align-items: flex-end; }

.arch-layer-back {
            position: absolute; z-index: 5;
            filter: brightness(0.85); opacity: 0.95;
            transform-style: preserve-3d; display: flex; align-items: flex-end;
            pointer-events: none;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

.arch-container { display: flex; justify-content: center; position: relative; align-items: flex-end; transform-style: preserve-3d; }

.balloon { border-radius: 50%; position: relative; box-shadow: inset -8px -8px 20px rgba(0,0,0,0.25), 0 10px 15px rgba(0,0,0,0.1); background-image: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 60%); }

.balloon::after { content: ""; position: absolute; top: 10%; left: 15%; width: 20%; height: 15%; background: rgba(255, 255, 255, 0.5); border-radius: 50%; filter: blur(1.5px); }

.star-foil { position: absolute; width: 210px; height: 210px; background-image: url("../balloons/10.png"); background-size: contain; background-repeat: no-repeat; pointer-events: none; }

.number-foil { position: absolute; width: 320px; height: 380px; background-size: contain; background-repeat: no-repeat; background-position: center; pointer-events: none; z-index: 10000; }

.balloon-large { width: 110px; height: 110px; z-index: 100; margin: 0 -2px; }

.small-3d { position: absolute !important; width: 51px; height: 51px; }

.pillar-stack { display: flex; flex-direction: column-reverse; align-items: center; transform-style: preserve-3d; }

.balloon-row { display: flex; justify-content: center; align-items: center; position: relative; transform-style: preserve-3d; }

.row-double { margin-bottom: -35px; }

.row-single { margin-bottom: -18px; height: 51px; width: 100px; }

.left-back { left: -22px; transform: translateZ(-10px); }

.right-back { right: -22px; transform: translateZ(-10px); }

.balloon-center { transform: translateZ(25px); top: 7px; position: relative; }

.bridge-area { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: -35px; transform-style: preserve-3d; }

.bridge-top { top: 0; }

.bridge-bottom { bottom: -35px; flex-direction: column-reverse; }

.bridge-row { display: flex; justify-content: center; transform-style: preserve-3d; }

.bridge-5inch-layer { position: absolute; left: 50%; transform: translate(-50%, -50%); display: flex; justify-content: space-between; height: 51px; transform-style: preserve-3d; }

.bridge-5inch-spacer { width: 106px; height: 51px; position: relative; transform-style: preserve-3d; display: flex; justify-content: center; }

.top-back { top: -27px; transform: translateZ(-10px); }

.bottom-back { bottom: -42px; transform: translateZ(-10px); }

.inline-warning { width: 90%; background: #fff5f5; border: 2px solid #ff4757; color: #ff4757; padding: 12px 20px; border-radius: 15px; font-weight: 700; text-align: center; margin-bottom: 15px; display: none; z-index: 10; }

.total-height-badge { background: var(--pink); color: white; padding: 10px 25px; border-radius: 30px; font-weight: 800; margin-bottom: 15px; z-index: 10; }

.control-group { margin-bottom: 18px; }

.colour-pattern { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.colour-pattern[hidden] { display: none; }
.colour-pattern legend { margin-bottom: 8px; font-size: .85rem; font-weight: 700; color: #57606f; text-transform: uppercase; }
.colour-pattern label { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 7px; padding: 10px 12px; border: 2px solid #eee; border-radius: 12px; background: #fff; cursor: pointer; text-transform: none; }
.colour-pattern label:has(input:checked) { border-color: var(--pink); background: #fff5f7; }
.colour-pattern input { margin: 3px 0 0; accent-color: var(--brand); }
.colour-pattern strong, .colour-pattern small { display: block; }
.colour-pattern small { margin-top: 2px; font-size: .72rem; font-weight: 500; line-height: 1.35; }

label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.85rem; color: #57606f; text-transform: uppercase; }

.val-badge { background: var(--pink); color: white; padding: 2px 8px; border-radius: 8px; font-size: 0.8rem; float: right; }

select { width: 100%; padding: 12px; border-radius: 12px; border: 2px solid #eee; font-family: inherit; font-weight: 600; outline: none; cursor: pointer; }

input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border-radius: 4px; background: #f1f2f6; outline: none; cursor: pointer; background-image: linear-gradient(var(--brand), var(--brand)); background-repeat: no-repeat; background-size: 0% 100%; border: none; }

input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; height: 18px; width: 18px; border-radius: 50%; background: white; border: 3px solid var(--brand); box-shadow: 0 2px 4px rgba(0,0,0,0.1); cursor: pointer; }

.btn-add { width: 100%; background: var(--success); color: white; border: none; padding: 18px; border-radius: 20px; font-weight: 800; cursor: pointer; margin-top: auto; box-shadow: 0 5px 0px var(--success-dark); display: flex; justify-content: space-between; font-size: 1.1rem; transition: 0.2s; }

.build-breakdown { margin: 0 0 16px; padding: 14px 16px; background: #fff; border: 2px solid #ffe8cc; border-radius: 16px; font-size: .82rem; color: #57606f; }
.build-breakdown-title, .build-breakdown-row { display: flex; justify-content: space-between; gap: 12px; }
.build-breakdown-title { color: var(--brand-dark); font-size: .72rem; letter-spacing: .04em; margin-bottom: 8px; }
.build-breakdown-title span { white-space: nowrap; }
.build-breakdown-row { padding: 6px 0; border-top: 1px solid #f3eee7; }
.build-breakdown-row strong { color: #2d3436; white-space: nowrap; }

.btn-add:hover { transform: translateY(2px); box-shadow: 0 3px 0px var(--success-dark); }

.hidden { display: none; }

h1 { font-family: "Pacifico", cursive; font-size: 3.5rem; margin-bottom: 5px; margin-top: 10px; color: #ff85a2; text-align: center; text-shadow: 3px 3px 0px #fff, 6px 6px 0px rgba(0,0,0,0.03); }


/* Showstopper photographic intro — same locked treatment as other builders.
   Photo fills TOP + RIGHT and fades via CSS toward LEFT + BOTTOM. */
.builder-photo-header {
    position: relative;
    min-height: 285px;
    margin: -40px -40px 30px -40px;
    overflow: hidden;
    border-radius: 32px 32px 0 0;
    background: #fff;
}

.builder-photo-copy {
    position: relative;
    z-index: 2;
    width: 58%;
    padding: 58px 24px 38px 58px;
}

.builder-photo-header h1 {
    text-align: left;
    margin: 0 0 10px;
}

.builder-photo-subtitle {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.55;
    text-align: left;
    margin: 0;
    max-width: 620px;
}

.builder-photo {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    display: block;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 18%, #000 42%),
        linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.55) 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 18%, #000 42%),
        linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.55) 78%, transparent 100%);
    mask-composite: intersect;
}

.builder-photo-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,.98) 34%, rgba(255,255,255,.72) 48%, rgba(255,255,255,0) 66%),
        linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 58%, rgba(255,255,255,.55) 78%, rgba(255,255,255,1) 100%);
}

@media (max-width: 1024px) {
    .builder-photo-header {
        min-height: 250px;
        margin: -20px -20px 24px -20px;
        border-radius: 24px 24px 0 0;
    }

    .builder-photo-copy {
        width: 100%;
        padding: 38px 20px 30px;
    }

    .builder-photo-header h1 {
        max-width: 68%;
        text-align: left !important;
        font-size: 2.5rem !important;
    }

    .builder-photo-subtitle {
        max-width: 66%;
        font-size: 1rem;
    }

    .builder-photo {
        width: 70%;
    }

    .builder-photo-header::after {
        background:
            linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,.97) 40%, rgba(255,255,255,.50) 58%, rgba(255,255,255,0) 74%),
            linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 60%, rgba(255,255,255,.60) 80%, rgba(255,255,255,1) 100%);
    }
}

@media (max-width: 1024px) {
.hero-builder { width: 95%; padding: 20px; margin: 20px auto;  }

.builder-grid { flex-direction: column; }

.controls { flex: 1 1 100%; max-width: 100%; order: 1; }

.preview-area { min-height: 500px; order: 2; margin-top: 20px; }

h1 { font-size: 2.5rem !important; }
}

/* =========================================================
   STANDARDISED PHOTO HEADER — MOBILE PORTRAIT
   Shared MPB proportions: same text/image balance site-wide.
   ========================================================= */
@media (max-width:600px) and (orientation:portrait){

  .builder-photo-header{
    min-height:285px !important;
  }

  .builder-photo-copy{
    position:relative !important;
    z-index:3 !important;
    width:76% !important;
    box-sizing:border-box !important;
    padding:24px 18px 24px !important;
  }

  .builder-photo-header h1{
    max-width:80% !important;
    margin:0 0 12px 0 !important;
    font-size:2.05rem !important;
    line-height:1.08 !important;
    text-align:left !important;
  }

  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    max-width:68% !important;
    margin:0 !important;
    font-size:.86rem !important;
    line-height:1.45 !important;
    text-align:left !important;
  }

  .builder-photo{
    width:62% !important;
    height:100% !important;
    top:0 !important;
    right:0 !important;
    object-fit:cover !important;
    object-position:right top !important;
  }

  .builder-photo-header::after{
    background:
      linear-gradient(to right,
        #fff 0%,
        #fff 38%,
        rgba(255,255,255,.97) 48%,
        rgba(255,255,255,.72) 60%,
        rgba(255,255,255,.26) 74%,
        rgba(255,255,255,0) 88%),
      linear-gradient(to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 60%,
        rgba(255,255,255,.55) 80%,
        #fff 100%) !important;
  }
}

@media (max-width:390px) and (orientation:portrait){
  .builder-photo-header h1{
    font-size:1.82rem !important;
  }

  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    font-size:.82rem !important;
  }
}

/* =========================================================
   STANDARDISED PHOTO HEADER — HOW/ABOUT VISUAL WEIGHT
   Same mobile geometry, stronger image presence site-wide.
   ========================================================= */
@media (max-width:600px) and (orientation:portrait){

  .builder-photo-header{
    min-height:285px !important;
  }

  .builder-photo-copy{
    width:76% !important;
    padding:24px 18px 24px !important;
  }

  .builder-photo-header h1{
    max-width:80% !important;
    font-size:2.05rem !important;
    line-height:1.08 !important;
  }

  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    max-width:68% !important;
    font-size:.86rem !important;
    line-height:1.45 !important;
  }

  .builder-photo{
    width:62% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:right top !important;

    -webkit-mask-image:
      linear-gradient(to right,
        transparent 0%,
        rgba(0,0,0,.35) 18%,
        #000 42%),
      linear-gradient(to bottom,
        #000 0%,
        #000 68%,
        rgba(0,0,0,.55) 86%,
        transparent 100%) !important;
    -webkit-mask-composite:source-in !important;

    mask-image:
      linear-gradient(to right,
        transparent 0%,
        rgba(0,0,0,.35) 18%,
        #000 42%),
      linear-gradient(to bottom,
        #000 0%,
        #000 68%,
        rgba(0,0,0,.55) 86%,
        transparent 100%) !important;
    mask-composite:intersect !important;
  }

  .builder-photo-header::after{
    background:
      linear-gradient(to right,
        #fff 0%,
        rgba(255,255,255,.98) 38%,
        rgba(255,255,255,.68) 52%,
        rgba(255,255,255,0) 70%),
      linear-gradient(to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 70%,
        rgba(255,255,255,.55) 88%,
        #fff 100%) !important;
  }
}

@media (max-width:390px) and (orientation:portrait){
  .builder-photo-header h1{
    font-size:1.82rem !important;
  }

  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    font-size:.82rem !important;
  }
}

/* Canonical MPB photographic-header typography */
.builder-photo-header h1{
  font-family:"Pacifico",cursive !important;
  color:var(--mpb-header-pink,#ff4f86) !important;
  font-weight:400 !important;
  line-height:1.08 !important;
  text-shadow:var(--mpb-header-shadow,
    3px 3px 0 #fff,-2px -2px 0 #fff,2px -2px 0 #fff,-2px 2px 0 #fff,7px 7px 0 rgba(0,0,0,.065)) !important;
}
.builder-photo-subtitle,
.builder-photo-header .subtitle,
.builder-photo-copy .subtitle,
.builder-photo-copy p{
  font-family:"Quicksand",sans-serif !important;
  color:var(--mpb-header-copy,#56667b) !important;
  font-weight:500 !important;
}

@media(max-width:600px) and (orientation:portrait){
  .builder-photo-header{min-height:285px !important}
  .builder-photo-copy{
    position:relative !important;
    z-index:3 !important;
    width:76% !important;
    padding:24px 18px !important;
    box-sizing:border-box !important;
  }
  .builder-photo-header h1{
    font-size:2.05rem !important;
    max-width:80% !important;
    margin:0 0 12px !important;
    text-align:left !important;
  }
  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    font-size:.86rem !important;
    line-height:1.45 !important;
    max-width:68% !important;
    margin:0 !important;
    text-align:left !important;
  }
  .builder-photo{
    width:62% !important;
    object-position:right top !important;
    -webkit-mask-image:
      linear-gradient(to right,transparent 0%,rgba(0,0,0,.35) 18%,#000 42%),
      linear-gradient(to bottom,#000 0%,#000 68%,rgba(0,0,0,.55) 86%,transparent 100%) !important;
    -webkit-mask-composite:source-in !important;
    mask-image:
      linear-gradient(to right,transparent 0%,rgba(0,0,0,.35) 18%,#000 42%),
      linear-gradient(to bottom,#000 0%,#000 68%,rgba(0,0,0,.55) 86%,transparent 100%) !important;
    mask-composite:intersect !important;
  }
  .builder-photo-header::after{
    background:
      linear-gradient(to right,#fff 0%,rgba(255,255,255,.98) 38%,rgba(255,255,255,.68) 52%,rgba(255,255,255,0) 70%),
      linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 70%,rgba(255,255,255,.55) 88%,#fff 100%) !important;
  }
}
