/* =========================================================
   V37.3 — APPROVED HOME SCREEN
   Matches the approved mockup while keeping every control live.
   ========================================================= */

@media (min-width: 761px){
  #startScreen.v36-start{
    position:relative!important;
    width:100vw!important;
    height:100vh!important;
    min-height:720px!important;
    overflow:hidden!important;
    background:
      radial-gradient(circle at 35% 8%,rgba(255,255,255,.16),transparent 24%),
      linear-gradient(180deg,#1192be 0%,#087ca5 48%,#066d95 100%)!important;
  }

  #startScreen .v36-sky{
    display:block!important;
    opacity:.52!important;
    z-index:0!important;
  }

  /* Header */
  #startScreen .v36-header{
    position:absolute!important;
    top:20px!important;
    left:24px!important;
    right:24px!important;
    height:76px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    direction:ltr!important;
    z-index:60!important;
    padding:0!important;
    pointer-events:none;
  }
  #startScreen .v36-header>*{pointer-events:auto}

  #startScreen .v36-header-tools{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    direction:ltr!important;
  }
  #startScreen .v36-mini-pill{
    min-height:56px!important;
    display:flex!important;
    align-items:center!important;
    padding:0 22px!important;
    border-radius:20px!important;
    background:linear-gradient(180deg,#0b5c91,#074770)!important;
    border:2px solid rgba(255,255,255,.34)!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:1000!important;
    box-shadow:inset 0 2px 0 rgba(255,255,255,.13),0 8px 18px rgba(0,40,72,.18)!important;
    backdrop-filter:none!important;
  }
  #startScreen .v36-icon-btn{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    border-radius:18px!important;
    display:grid!important;
    place-items:center!important;
    background:linear-gradient(180deg,#0b5c91,#074770)!important;
    border:2px solid rgba(255,255,255,.34)!important;
    color:#fff!important;
    font-size:25px!important;
    box-shadow:inset 0 2px 0 rgba(255,255,255,.13),0 8px 18px rgba(0,40,72,.18)!important;
  }

  #startScreen .v36-school-brand{
    position:absolute!important;
    right:0!important;
    top:0!important;
    width:370px!important;
    height:76px!important;
    padding:8px 16px!important;
    display:flex!important;
    flex-direction:row-reverse!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:13px!important;
    border-radius:21px!important;
    background:#fff!important;
    border:2px solid rgba(255,255,255,.9)!important;
    box-shadow:0 9px 24px rgba(0,42,76,.18)!important;
    backdrop-filter:none!important;
    direction:rtl!important;
    z-index:70!important;
  }
  #startScreen .v36-school-brand img{
    width:54px!important;
    height:54px!important;
    flex:0 0 54px!important;
    object-fit:contain!important;
  }
  #startScreen .v36-school-copy{
    min-width:0!important;
    text-align:right!important;
  }
  #startScreen .v36-school-copy b{
    display:block!important;
    color:#0b4779!important;
    font-size:18px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }
  #startScreen .v36-school-copy span{
    display:block!important;
    color:#079ba7!important;
    margin-top:4px!important;
    font-size:10px!important;
    font-weight:900!important;
    white-space:nowrap!important;
  }

  /* Main composition */
  #startScreen .v36-home{
    position:absolute!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    min-height:720px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }

  /* Left cream game panel */
  #startScreen .v36-intro-card{
    position:absolute!important;
    left:10px!important;
    top:114px!important;
    bottom:18px!important;
    width:430px!important;
    min-width:430px!important;
    max-width:430px!important;
    max-height:none!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    margin:0!important;
    padding:0 18px 16px!important;
    border-radius:32px!important;
    border:4px solid #f2bd2c!important;
    outline:3px solid rgba(255,255,255,.96)!important;
    outline-offset:-8px!important;
    background:
      radial-gradient(circle at 88% 15%,rgba(255,220,92,.22),transparent 32%),
      linear-gradient(180deg,#fffdf5 0%,#fff8df 100%)!important;
    box-shadow:0 15px 0 rgba(5,71,109,.28),0 24px 45px rgba(0,38,68,.26)!important;
    z-index:25!important;
    scrollbar-width:none!important;
  }
  #startScreen .v36-intro-card::-webkit-scrollbar{display:none!important}
  #startScreen .v36-intro-card::before{
    content:""!important;
    position:absolute!important;
    inset:10px!important;
    border:1px solid rgba(234,184,48,.2)!important;
    border-radius:25px!important;
    pointer-events:none!important;
    background:none!important;
  }

  #startScreen .v36-intro-top{
    order:1!important;
    position:relative!important;
    display:grid!important;
    grid-template-columns:150px 1fr!important;
    gap:8px!important;
    align-items:center!important;
    width:100%!important;
    min-height:280px!important;
    height:280px!important;
    padding:16px 8px 0!important;
    direction:ltr!important;
    flex:0 0 280px!important;
  }

  #startScreen .v36-mascot-box{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    grid-column:1!important;
    width:150px!important;
    height:255px!important;
    min-width:150px!important;
    margin:0!important;
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    align-self:end!important;
  }
  #startScreen .v36-mascot-box img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    content:url("mamoun-buddy.png")!important;
    filter:drop-shadow(0 13px 12px rgba(7,56,93,.18))!important;
  }

  #startScreen .v36-copy{
    grid-column:2!important;
    align-self:center!important;
    width:auto!important;
    min-width:0!important;
    padding:0 5px 0 0!important;
    text-align:right!important;
    direction:rtl!important;
    z-index:2!important;
  }
  #startScreen .v36-eyebrow{
    display:inline-flex!important;
    margin:0 0 10px!important;
    padding:7px 11px!important;
    border-radius:999px!important;
    background:#fff0b5!important;
    color:#9a6100!important;
    font-size:11px!important;
    line-height:1!important;
    font-weight:1000!important;
    white-space:nowrap!important;
  }
  #startScreen .v36-copy h1{
    margin:0 0 13px!important;
    font-size:42px!important;
    line-height:.98!important;
    letter-spacing:-1.4px!important;
    color:#075086!important;
    text-shadow:none!important;
  }
  #startScreen .v36-copy h1 span{color:#075086!important}
  #startScreen .v36-ribbon{
    display:inline-flex!important;
    max-width:210px!important;
    margin:0!important;
    padding:10px 13px!important;
    border-radius:15px!important;
    background:linear-gradient(180deg,#fff0ab,#ffdf68)!important;
    border:1px solid #e9b928!important;
    color:#775000!important;
    font-size:13px!important;
    line-height:1.35!important;
    font-weight:1000!important;
    box-shadow:0 5px 10px rgba(189,132,14,.12)!important;
  }
  #startScreen .v36-copy p{display:none!important}

  /* Start button immediately below hero area */
  #startScreen .v36-start-btn{
    order:2!important;
    flex:0 0 auto!important;
    width:100%!important;
    min-height:72px!important;
    margin:0 0 13px!important;
    padding:10px 18px!important;
    border-radius:20px!important;
    border:3px solid #eaffec!important;
    border-bottom:7px solid #087b35!important;
    background:linear-gradient(180deg,#35d568 0%,#14a446 100%)!important;
    color:#fff!important;
    font-size:27px!important;
    font-weight:1000!important;
    box-shadow:0 8px 0 #08602c,0 14px 22px rgba(0,104,45,.22)!important;
    text-shadow:0 2px 0 rgba(0,0,0,.08)!important;
  }

  #startScreen .v36-section-title{
    order:3!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    width:100%!important;
    margin:0 0 9px!important;
    color:#0a4978!important;
    font-size:14px!important;
    font-weight:1000!important;
  }
  #startScreen .v36-section-title span{
    height:2px!important;
    flex:1!important;
    background:#e5ac1c!important;
  }

  #startScreen .v36-steps{
    order:4!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    direction:rtl!important;
  }
  #startScreen .v36-step{
    position:relative!important;
    min-height:90px!important;
    padding:10px 8px 8px!important;
    border-radius:17px!important;
    border:1.5px solid #efd37e!important;
    background:linear-gradient(180deg,#fff,#fffdf4)!important;
    box-shadow:0 4px 0 #ead99a,0 8px 15px rgba(8,59,92,.06)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:1px!important;
    text-align:center!important;
  }
  #startScreen .v36-step i{
    position:absolute!important;
    top:7px!important;
    right:8px!important;
    width:25px!important;
    height:25px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:50%!important;
    background:linear-gradient(180deg,#ffd960,#f5bd25)!important;
    border:1px solid #d99400!important;
    color:#704900!important;
    font-size:12px!important;
    font-style:normal!important;
    font-weight:1000!important;
    box-shadow:0 2px 0 #c98700!important;
  }
  #startScreen .v36-step-icon{
    margin:0 0 2px!important;
    font-size:29px!important;
    line-height:1!important;
    filter:drop-shadow(0 3px 2px rgba(0,0,0,.08));
  }
  #startScreen .v36-step b{
    color:#0a4676!important;
    font-size:13px!important;
    line-height:1.2!important;
    font-weight:1000!important;
  }
  #startScreen .v36-step small{
    color:#78653c!important;
    font-size:10px!important;
    line-height:1.2!important;
  }
  #startScreen .v36-step:nth-child(3),
  #startScreen .v36-step:nth-child(4){
    background:linear-gradient(180deg,#fffdf2,#fff6d2)!important;
  }

  #startScreen .v36-evidence{display:none!important}

  #startScreen .v36-actions{
    order:5!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:12px 0 0!important;
    padding:0!important;
    display:block!important;
  }
  #startScreen .v36-secondary-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:9px!important;
  }
  #startScreen .v36-secondary-actions .big-btn{
    min-height:54px!important;
    padding:8px 9px!important;
    border-radius:15px!important;
    font-size:13px!important;
    font-weight:1000!important;
  }
  #startScreen #createBtn{
    background:linear-gradient(180deg,#ffd65a,#f1b91f)!important;
    color:#103f67!important;
    border:2px solid #f7dc7a!important;
    border-bottom:5px solid #c98a00!important;
    box-shadow:0 5px 0 #ad7600!important;
  }
  #startScreen #labStartBtn{
    background:#fff!important;
    color:#0b4776!important;
    border:2px solid #b9dbe8!important;
    border-bottom:5px solid #8fbcca!important;
    box-shadow:0 5px 0 #78a8b8!important;
  }
  #startScreen #heroAiBtn{
    grid-column:1/-1!important;
    min-height:58px!important;
    background:linear-gradient(180deg,#1494e5,#086abb)!important;
    color:#fff!important;
    border:2px solid #99ddff!important;
    border-bottom:6px solid #075297!important;
    box-shadow:0 6px 0 #064983,0 10px 16px rgba(4,81,143,.18)!important;
    font-size:17px!important;
  }
  #startScreen #heroAiBtn::before{
    content:"🎙️"!important;
    margin-left:7px!important;
  }

  #startScreen .resume-box{
    order:6!important;
    flex:0 0 auto!important;
    margin:8px 0 0!important;
  }
  #startScreen .voice-banner{display:none!important}
  #startScreen .v36-credit{display:none!important}

  /* Right map — dominant, almost edge-to-edge like the approved reference */
  #startScreen .v36-map-card{
    position:absolute!important;
    left:452px!important;
    right:20px!important;
    top:96px!important;
    bottom:8px!important;
    width:auto!important;
    height:auto!important;
    max-width:none!important;
    margin:0!important;
    border-radius:28px!important;
    border:3px solid rgba(255,255,255,.86)!important;
    outline:2px solid rgba(197,238,255,.42)!important;
    outline-offset:-7px!important;
    overflow:hidden!important;
    background:#0b91b9!important;
    box-shadow:0 16px 38px rgba(0,38,72,.20)!important;
    z-index:10!important;
    isolation:isolate!important;
  }
  #startScreen .v36-map-card::before{
    display:none!important;
    content:none!important;
  }
  #startScreen .v36-map-card::after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    z-index:3!important;
    pointer-events:none!important;
    background:
      linear-gradient(90deg,rgba(7,80,111,.12),transparent 10%),
      linear-gradient(180deg,rgba(255,255,255,.03),transparent 15%,transparent 86%,rgba(0,57,89,.08))!important;
  }
  #startScreen .v36-map-card img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
    transform:none!important;
    filter:saturate(1.09) contrast(1.03) brightness(1.02)!important;
  }
  #startScreen .v36-map-caption{display:none!important}

  /* Keep the clean-sky patch, but place school header above the patched corner
     so the result reads as one intentional composition. */
  #startScreen .start-map-badge-cover{
    display:block!important;
    right:0!important;
    top:0!important;
    width:25%!important;
    height:13%!important;
    z-index:2!important;
  }

  /* School header sits over the map corner, exactly like the approved mockup. */
  #startScreen .v36-school-brand{
    transform:translateY(0)!important;
  }
}

/* Laptop widths: preserve the same proportions instead of collapsing the panel. */
@media (min-width:761px) and (max-width:1180px){
  #startScreen .v36-intro-card{
    left:8px!important;
    width:350px!important;
    min-width:350px!important;
    max-width:350px!important;
    padding-left:13px!important;
    padding-right:13px!important;
  }
  #startScreen .v36-map-card{left:372px!important;right:10px!important}
  #startScreen .v36-intro-top{
    grid-template-columns:120px 1fr!important;
    min-height:235px!important;
    height:235px!important;
    flex-basis:235px!important;
  }
  #startScreen .v36-mascot-box{width:120px!important;min-width:120px!important;height:220px!important}
  #startScreen .v36-copy h1{font-size:34px!important}
  #startScreen .v36-eyebrow{font-size:9px!important;padding:6px 8px!important}
  #startScreen .v36-ribbon{font-size:11px!important;padding:8px 9px!important}
  #startScreen .v36-start-btn{min-height:58px!important;font-size:21px!important}
  #startScreen .v36-step{min-height:72px!important}
  #startScreen .v36-step-icon{font-size:23px!important}
  #startScreen .v36-secondary-actions .big-btn{min-height:46px!important;font-size:11px!important}
  #startScreen #heroAiBtn{min-height:50px!important;font-size:14px!important}
  #startScreen .v36-school-brand{width:320px!important;height:68px!important}
  #startScreen .v36-school-brand img{width:46px!important;height:46px!important}
  #startScreen .v36-school-copy b{font-size:15px!important}
  #startScreen .v36-school-copy span{font-size:9px!important}
}

/* Phone: same visual language, stacked cleanly. */
@media (max-width:760px){
  #startScreen.v36-start{
    min-height:100svh!important;
    overflow:auto!important;
    background:linear-gradient(180deg,#1192be,#066d95)!important;
  }
  #startScreen .v36-header{
    position:relative!important;
    inset:auto!important;
    height:auto!important;
    padding:10px 10px 2px!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
  }
  #startScreen .v36-school-brand{
    width:auto!important;
    flex:1!important;
    min-width:0!important;
    height:58px!important;
    padding:5px 8px!important;
    border-radius:16px!important;
    background:#fff!important;
  }
  #startScreen .v36-school-brand img{width:42px!important;height:42px!important}
  #startScreen .v36-school-copy b{font-size:12px!important}
  #startScreen .v36-school-copy span{font-size:8px!important}
  #startScreen .v36-header-tools{gap:5px!important}
  #startScreen .v36-mini-pill{
    min-height:44px!important;
    padding:0 10px!important;
    font-size:10px!important;
    border-radius:14px!important;
  }
  #startScreen .v36-icon-btn{
    width:44px!important;height:44px!important;min-width:44px!important;border-radius:14px!important;font-size:19px!important;
  }

  #startScreen .v36-home{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:8px 0 24px!important;
    overflow:visible!important;
  }
  #startScreen .v36-map-card{
    position:relative!important;
    left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    width:calc(100% - 16px)!important;
    height:46svh!important;
    min-height:330px!important;
    margin:0 8px!important;
    border-radius:22px!important;
    order:1!important;
  }
  #startScreen .v36-map-card img{object-fit:cover!important}
  #startScreen .start-map-badge-cover{width:29%!important;height:15%!important}

  #startScreen .v36-intro-card{
    position:relative!important;
    left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    width:calc(100% - 20px)!important;
    min-width:0!important;max-width:none!important;
    margin:-32px 10px 0!important;
    padding:0 13px 14px!important;
    border-radius:25px!important;
    overflow:visible!important;
    z-index:20!important;
  }
  #startScreen .v36-intro-top{
    grid-template-columns:118px 1fr!important;
    min-height:220px!important;height:220px!important;flex-basis:220px!important;
    padding-top:10px!important;
  }
  #startScreen .v36-mascot-box{width:118px!important;min-width:118px!important;height:205px!important}
  #startScreen .v36-copy h1{font-size:31px!important}
  #startScreen .v36-eyebrow{font-size:9px!important}
  #startScreen .v36-ribbon{font-size:10px!important}
  #startScreen .v36-start-btn{min-height:60px!important;font-size:22px!important}
  #startScreen .v36-step{min-height:75px!important}
  #startScreen .v36-step b{font-size:11px!important}
  #startScreen .v36-step small{font-size:9px!important}
  #startScreen .v36-step-icon{font-size:24px!important}
  #startScreen .v36-secondary-actions .big-btn{min-height:48px!important;font-size:11px!important}
  #startScreen #heroAiBtn{min-height:52px!important;font-size:14px!important}
  #startScreen .v36-credit{display:none!important}
}
