
/* GreenPrint — Visual polish only. All generator logic and file handlers remain unchanged. */
:root{--gp-spring:#baff83;--gp-ease:cubic-bezier(.22,1,.36,1);}
/* Mobile: floating navigation, never participates in page layout. */
@media(max-width:820px){
  .top{position:sticky!important;z-index:100!important;isolation:isolate;}
  .top-inner{position:relative!important;}
  .top-inner .navlinks,
  .top-inner #gpMainNav{
    position:absolute!important;top:calc(100% + 8px)!important;
    left:12px!important;right:12px!important;width:auto!important;
    max-width:none!important;grid-column:auto!important;grid-row:auto!important;
    margin:0!important;padding:10px!important;z-index:150!important;
    display:flex!important;flex-direction:column!important;gap:3px!important;
    overflow-y:auto!important;overscroll-behavior:contain;
    max-height:min(72dvh,510px)!important;
    border:1px solid rgba(185,248,150,.38)!important;
    border-radius:18px!important;
    background:rgba(10,31,23,.98)!important;
    box-shadow:0 22px 65px rgba(0,0,0,.58),0 0 0 1px rgba(255,255,255,.03) inset!important;
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
    transform:translateY(-10px) scale(.985)!important;transform-origin:top center;
    
  }
  .top-inner #gpMainNav.gp-open{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;
    transform:translateY(0) scale(1)!important;
  }
  .top-inner #gpMainNav a{min-height:42px!important;padding:9px 14px!important;flex-shrink:0;}
  .top-inner .gp-mobile-menu{box-shadow:0 4px 14px rgba(0,0,0,.22);}
  .top-inner .gp-mobile-menu[aria-expanded=true]{background:#baff83!important;color:#112719!important;}
  .top-inner .head-actions{grid-row:auto!important;}
  .hero .hero-art img{filter:drop-shadow(0 15px 16px rgba(0,0,0,.55))!important;}
}
@media(max-width:420px){.top-inner #gpMainNav{left:8px!important;right:8px!important;}}
/* Restrained panel materials: neutral charcoal and evergreen only where useful. */
#studio .studio-mast{
 background:linear-gradient(125deg,rgba(20,29,35,.94),rgba(12,33,33,.86))!important;
 border:1px solid rgba(226,255,215,.22)!important;
 box-shadow:0 14px 44px rgba(0,0,0,.22)!important;
}
#studio .panel{background:linear-gradient(140deg,rgba(16,29,29,.94),rgba(12,33,26,.91))!important;
 border:1px solid rgba(201,244,190,.19)!important;box-shadow:0 12px 35px rgba(0,0,0,.2)!important;}
#studio #import{background:linear-gradient(145deg,rgba(13,36,29,.96),rgba(15,34,39,.94))!important;}
#studio .upload-card{background:rgba(19,35,39,.88)!important;border-color:rgba(175,222,194,.25)!important;}
#studio .drop{min-height:112px!important;padding:14px!important;background:rgba(19,37,41,.58)!important;
 }
#studio .drop:hover{background:rgba(29,58,48,.75)!important;transform:translateY(-1px);}
#studio .panel-head{margin-bottom:15px!important;}
#studio .upload-grid{gap:14px!important;}
#studio .studio-mast h2{font-weight:850;}
#gpWorldImport .gp-world-import-card,#gpWorldImport .gp-import-panel{margin-inline:auto;}
#gpJavaPage .gp-java-hero{background:transparent!important;border:0!important;
 box-shadow:none!important;padding:12px 10px 20px!important;backdrop-filter:none!important;}
#gpJavaPage .gp-java-hero h2{font-size:clamp(38px,4.3vw,64px)!important;
 text-shadow:0 3px 15px rgba(0,0,0,.65)!important;}
#gpJavaPage .gp-java-hero p{font-size:clamp(15px,1.2vw,18px)!important;
 text-shadow:0 2px 8px rgba(0,0,0,.65)!important;}
#gpJavaPage #gpJavaConverter{background:linear-gradient(140deg,rgba(10,31,25,.96),rgba(11,31,33,.93))!important;
 border:1px solid rgba(179,245,156,.26)!important;}
#gpJavaPage .gp-java-hint{padding:17px 20px!important;border-radius:13px!important;
 background:rgba(9,32,27,.82)!important;font-size:clamp(13px,1.05vw,16px)!important;}
#home h1 span{filter:drop-shadow(0 5px 3px rgba(0,0,0,.48));}
#home .hero-art img{filter:drop-shadow(0 23px 17px rgba(0,0,0,.65))!important;}
/* Credit cards: equal proportions and readable names on desktop and mobile. */
#credits .credit-layout{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:16px!important;align-items:stretch!important;}
#credits .credit-card,#credits .gp-community-credit{
 grid-column:auto!important;display:flex!important;flex-direction:column!important;
 align-items:stretch!important;gap:14px!important;min-width:0!important;min-height:220px!important;
 padding:22px!important;background:rgba(10,33,27,.92)!important;}
#credits .credit-avatar{flex:0 0 65px!important;width:65px!important;height:65px!important;}
#credits .credit-content{min-width:0!important;width:100%!important;flex:1!important;}
#credits .gp-credit-details{min-width:0!important;width:100%!important;}
#credits .gp-credit-details summary{font-size:clamp(15px,1.4vw,20px)!important;
 overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.3!important;}
#credits .credit-card h3{font-size:clamp(17px,1.5vw,21px)!important;overflow-wrap:anywhere;}
#credits .credit-role{display:block;line-height:1.45;}
#credits .credit-card p{line-height:1.65!important;}
#credits .credit-card details[open] p{}

@media(max-width:900px){#credits .credit-layout{grid-template-columns:1fr!important;}
 #credits .credit-card,#credits .gp-community-credit{min-height:0!important;flex-direction:row!important;}}
@media(max-width:480px){#credits .credit-card,#credits .gp-community-credit{padding:16px!important;gap:12px!important;}
 #credits .credit-avatar{flex-basis:55px!important;width:55px!important;height:55px!important;}}
/* Consistent tactile feedback, without animating layout or heavy filters. */
.btn,.navlinks a,.social-link,.guide-card,.credit-card,.upload-card{
 }
@media(hover:hover) and (min-width:821px){
 .credit-card:hover,.upload-card:hover{transform:translateY(-3px)!important;
 box-shadow:0 20px 46px rgba(0,0,0,.3)!important;}
}
/* Progressive entrances, only when visible; never hide content if JS is disabled. */
@media(prefers-reduced-motion:no-preference){
 .view.active-view{}
 
 .gp-reveal-ready{opacity:0;transform:translateY(14px);
   }
 .gp-reveal-ready.gp-reveal-visible{opacity:1;transform:none;}
 .gp-reveal-ready:nth-child(2){}
 .gp-reveal-ready:nth-child(3){}
}
@media(prefers-reduced-motion:reduce){
 .gp-reveal-ready{opacity:1!important;transform:none!important;}
 .view.active-view{}
 .top-inner #gpMainNav{}
}


/* User-requested corrections, purely visual. Existing functionality untouched. */
/* Studio: readable title against a brighter unobstructed scene. */
#studio{padding-top:15px!important;padding-bottom:18px!important;}
#studio .studio-mast{background:transparent!important;border:0!important;box-shadow:none!important;
 backdrop-filter:none!important;min-height:0!important;margin-bottom:10px!important;
 padding:12px 14px 8px!important;overflow:visible!important;}
#studio .studio-mast h2{font-size:clamp(38px,3.7vw,58px)!important;
 text-shadow:0 3px 12px rgba(0,0,0,.88),0 1px 3px rgba(0,0,0,.9)!important;}
#studio .studio-mast .eyebrow{text-shadow:0 2px 8px #001d15!important;}
#studio .studio-mast img{display:none!important;}
#studio .workspace{gap:10px!important;}
#studio .panel{padding:14px 18px!important;margin-bottom:10px!important;border-radius:15px!important;}
#studio .panel-head{margin-bottom:8px!important;}
#studio .panel-head p{font-size:13px!important;margin-top:2px!important;}
#studio .upload-grid{gap:10px!important;}
#studio .upload-card{padding:10px 12px!important;}
#studio .dropzone,#studio .drop{min-height:78px!important;padding:8px 10px!important;}
#studio .upload-card .actions{margin-top:6px!important;}
#studio #generate [data-t="generateDesc"]{display:none!important;}
#studio #generate .gp-project-name{margin-top:6px!important;}
#studio #generate .panel-head{margin-bottom:5px!important;}
#studio .pair-rows{min-height:35px!important;}
#studio .pair-empty{padding:10px!important;}
/* World import: intentional vertical hierarchy and centered workspace. */
#gpWorldImport{padding:20px 16px 35px!important;}
#gpWorldImport>div:first-child{max-width:780px!important;margin:clamp(18px,3vh,34px) auto 30px!important;
 padding:clamp(20px,3vw,38px)!important;border-radius:22px!important;
 background:linear-gradient(155deg,rgba(9,33,27,.96),rgba(13,37,34,.94))!important;
 border:1px solid rgba(176,246,158,.26)!important;box-shadow:0 22px 60px rgba(0,0,0,.3)!important;}
#gpWorldImport h1,#gpWorldImport h2{line-height:1.16!important;letter-spacing:-.035em!important;}
/* Java page: restore dark translucent backing so heading remains legible. */
#gpJavaPage .gp-java-hero{background:linear-gradient(100deg,rgba(5,27,23,.9),rgba(7,30,25,.72) 73%,rgba(7,30,25,.2))!important;
 border:1px solid rgba(185,255,177,.18)!important;box-shadow:0 12px 30px rgba(0,0,0,.15)!important;
 padding:18px 24px!important;border-radius:16px!important;backdrop-filter:blur(5px)!important;}
#gpJavaPage .gp-java-hero p{color:#f0fff2!important;}
/* Guide: improve legibility without flattening the artwork. */
#guide .explain-intro,#guide .explain-facts>div,#guide .guide-card,#guide .guide-note,#guide .faq-item{
 background-color:rgba(6,25,21,.93)!important;}
#guide .section-frame>.lead{background:rgba(6,25,21,.58)!important;border-radius:10px!important;
 padding:8px 12px!important;display:inline-block!important;text-shadow:0 2px 8px #001c15!important;}
/* Credits desktop: natural vertical cards; expansion changes only its own height. */
@media(min-width:821px){
 #credits .credit-layout{grid-template-columns:minmax(0,1fr)!important;gap:13px!important;max-width:880px!important;}
 #credits .credit-card,#credits .gp-community-credit{grid-column:1!important;min-height:0!important;
 flex-direction:row!important;align-items:flex-start!important;padding:19px 22px!important;gap:20px!important;}
 #credits .credit-avatar{width:70px!important;height:70px!important;flex:0 0 70px!important;}
 #credits .credit-content{width:auto!important;flex:1!important;}
 #credits .gp-credit-details summary{font-size:clamp(17px,1.4vw,21px)!important;}
 #credits .credit-card details[open]{height:auto!important;}
 #credits .credit-card details[open] p{max-width:700px!important;}
}
/* Mobile: compact, clearly anchored dropdown with no floating giant black rectangle. */
@media(max-width:820px){
 .top-inner{position:relative!important;}
 #gpMainNav{left:auto!important;right:8px!important;top:calc(100% + 6px)!important;
 width:min(300px,calc(100vw - 26px))!important;max-width:300px!important;
 border-radius:15px!important;padding:8px!important;gap:1px!important;
 background:rgba(10,29,23,.98)!important;box-shadow:0 15px 35px rgba(0,0,0,.43)!important;
 max-height:min(75dvh,460px)!important;}
 #gpMainNav a{min-height:36px!important;padding:7px 11px!important;font-size:14px!important;
 border-radius:9px!important;}
 #gpMainNav a.nav-studio{min-height:40px!important;}
 #gpMainNav .nav-support,#gpMainNav .nav-donate{margin-top:4px!important;}
 #studio{padding-top:8px!important;}
 #studio .studio-mast{padding:9px 8px!important;}
 #studio .studio-mast h2{font-size:clamp(32px,8vw,43px)!important;}
 #studio .panel{padding:13px!important;}
 #studio .upload-grid{gap:9px!important;}
 #gpJavaPage .gp-java-hero{padding:15px!important;background:rgba(7,28,23,.77)!important;}
 #credits .credit-layout{grid-template-columns:1fr!important;}
 #credits .credit-card,#credits .gp-community-credit{min-height:0!important;align-items:flex-start!important;}
 /* Home should be a single viewport scene, not a forced long scroll. */
 #home{min-height:calc(100dvh - 65px)!important;overflow:hidden!important;}
 #home .hero-inner{min-height:0!important;padding-top:22px!important;padding-bottom:6px!important;}
 #home .hero h1,#home h1{font-size:clamp(39px,11vw,62px)!important;line-height:1.02!important;margin:12px 0!important;}
 #home .hero-copy p{font-size:clamp(13px,3.7vw,16px)!important;line-height:1.45!important;margin-bottom:12px!important;}
 #home .hero-buttons{gap:7px!important;}
 #home .hero-buttons .btn{padding:10px 12px!important;}
 #home .hero-signature{margin-top:9px!important;}
 #home .feature-ribbon{gap:6px!important;margin-top:8px!important;}
 #home .feature-ribbon>div{padding:9px 12px!important;min-height:0!important;}
 #home .gp-world-shortcut{gap:7px!important;margin-top:10px!important;padding-bottom:12px!important;}
 #home .gp-world-shortcut a{padding:10px 12px!important;min-height:40px!important;}
}
@media(max-width:420px) and (max-height:760px){
 #home .hero-inner{padding-top:10px!important;}
 #home h1{font-size:37px!important;margin:8px 0!important;}
 #home .feature-ribbon>div{padding:7px 10px!important;}
 #home .gp-world-shortcut a{padding:8px!important;}
}

/* GreenPrint — Desktop cinematic page entrances. Pure CSS: no generator logic changes. */
@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  
  
  
  /* The active-view class is already controlled by the site's existing router. */
  .view.active-view .hero-copy,
  .view.active-view .studio-mast,
  .view.active-view .section-frame > .eyebrow,
  .view.active-view .section-frame > h2,
  .view.active-view .section-frame > .lead,
  .view.active-view .gp-java-hero,
  .view.active-view #gpWorldImport > *,
  .view.active-view .community-lead {
    
  }
  .view.active-view .hero-art {}
  .view.active-view .feature-ribbon,
  .view.active-view .gp-world-shortcut,
  .view.active-view .studio-mast + .panel,
  .view.active-view .panel,
  .view.active-view .gp-java-converter,
  .view.active-view #gpJavaConverter,
  .view.active-view .explain-intro,
  .view.active-view .explain-facts,
  .view.active-view .guide-card,
  .view.active-view .credit-card,
  .view.active-view .gp-community-credit,
  .view.active-view .license-note,
  .view.active-view .social-link,
  .view.active-view .gp-java-hint {
    
  }
  .view.active-view .panel:nth-of-type(2),
  .view.active-view .guide-card:nth-child(2),
  .view.active-view .credit-card:nth-child(2),
  .view.active-view .social-link:nth-child(2){}
  .view.active-view .panel:nth-of-type(3),
  .view.active-view .guide-card:nth-child(3),
  .view.active-view .credit-card:nth-child(3),
  .view.active-view .social-link:nth-child(3){}
  .view.active-view .panel:nth-of-type(4),
  .view.active-view .guide-card:nth-child(4),
  .view.active-view .social-link:nth-child(4){}
  .view.active-view .feature-ribbon{}
  .view.active-view .gp-world-shortcut{}
  .view.active-view #gpJavaConverter{}
  .view.active-view .gp-java-hint{}
  .view.active-view .license-note{}
  /* Interaction remains snappy: hover animation uses only compositor-friendly transforms. */
  .view.active-view .btn,.view.active-view button:not(:disabled),
  .view.active-view .social-link,.view.active-view .guide-card {
    
  }
  .view.active-view .btn:hover,.view.active-view button:not(:disabled):hover{transform:translateY(-3px);}
}
@media (prefers-reduced-motion: reduce){
  .view *{}
}

/* V13: visual-only adjustments, no functional JS changes. */
#gpWorldImport .gp-world-shell{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(13,38,30,.97),rgba(8,29,27,.97))!important;border:1px solid rgba(177,255,143,.46)!important;border-radius:26px!important;box-shadow:0 26px 75px #0006,0 1px 0 #ffffff15 inset!important;}
#gpWorldImport .gp-world-shell:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#49c78e,#baff83,#49c78e);pointer-events:none;}
#gpWorldImport #gpWorldDrop{min-height:245px!important;padding:clamp(28px,6vw,60px)!important;border:2px dashed rgba(175,255,151,.68)!important;border-radius:21px!important;background:linear-gradient(145deg,rgba(45,100,68,.34),rgba(21,64,49,.42))!important;gap:13px!important;box-shadow:inset 0 0 42px #baff8309;}
#gpWorldImport #gpWorldDrop:hover,#gpWorldImport #gpWorldDrop:focus-visible,#gpWorldImport #gpWorldDrop.gp-dragging{background:linear-gradient(145deg,rgba(58,126,78,.47),rgba(27,83,61,.65))!important;border-color:#baff83!important;box-shadow:0 0 0 4px #baff8320,0 16px 40px #0003!important;transform:translateY(-2px);}
#gpWorldImport #gpWorldDrop .gp-drop-icon{font-size:48px!important;color:#baff83;filter:drop-shadow(0 4px 16px #baff8355);}
#gpWorldImport #gpWorldDrop strong{font-size:clamp(19px,2.5vw,25px);color:#fff;}
#gpWorldImport #gpWorldDrop small{padding:7px 14px;border:1px solid #baff8350;border-radius:100px;background:#baff8310;color:#c7f3c1!important;}
#gpWorldImport #gpStructurePanel{border-top-color:#baff8338!important;}
#gpWorldImport #gpStructureList .gp-structure-card{border-color:#baff8355!important;}
#home .gp-world-shortcut{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:930px;margin-inline:auto;}
#home .gp-world-shortcut-link{min-width:0;width:100%;height:100%;min-height:50px;display:flex!important;align-items:center;justify-content:center;gap:7px;text-align:center;flex-wrap:wrap;}
#community .community-donate{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(12px,2vw,26px);}
#credits .credit-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:900px;}
#credits .credit-card{width:100%;min-height:140px;box-sizing:border-box;}
#credits .license-note{width:100%;box-sizing:border-box;}

/* Start hidden and reveal in one continuous animation; never show before moving. */
@media(prefers-reduced-motion:no-preference){
.view.active-view .gp-world-shell,.view.active-view .gp-world-shortcut-link,.view.active-view .gp-java-bottom,.view.active-view .gp-java-hint,.view.active-view .community-donate,.view.active-view .credit-card,.view.active-view .license-note{}
.view.active-view .gp-world-shortcut-link:nth-child(2),.view.active-view .credit-card:nth-child(2){}
.view.active-view .credit-card:nth-child(3),.view.active-view .license-note{}
.view.active-view .gp-world-shell #gpWorldDrop{}
.view.active-view .gp-world-shell #gpStructurePanel{}
}
@media(max-width:700px){#home .gp-world-shortcut{grid-template-columns:minmax(0,1fr)!important;max-width:100%;}#home .gp-world-shortcut-link{min-height:52px;padding:12px!important;}#community .community-donate{grid-template-columns:auto minmax(0,1fr)!important;}#community .community-donate>span:last-child{grid-column:1/-1;justify-self:stretch;text-align:center;}#gpWorldImport .gp-world-shell{margin:22px auto 40px!important;border-radius:20px!important;}#gpWorldImport #gpWorldDrop{min-height:210px!important;}}


/* V13: cohesive credits and synchronized transitions, desktop + mobile.
   Presentation only: no modification of generators, conversion or import scripts. */
#credits .section-frame > .credit-layout,
#credits .section-frame > .license-note{width:100%!important;max-width:900px!important;margin-left:0!important;margin-right:auto!important;box-sizing:border-box!important;}
#credits .credit-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:15px!important;}
#credits .credit-card,#credits .license-note{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;margin-left:0!important;margin-right:0!important;border-radius:18px!important;}
#credits .license-note{margin-top:15px!important;min-height:140px!important;padding:22px!important;}
#credits .credit-card{min-height:140px!important;align-items:center!important;}
#credits .credit-content{flex:1;min-width:0;width:100%;}
#credits .gp-credit-details{width:100%;}
@media(max-width:700px){
 #credits .section-frame > .credit-layout,#credits .section-frame > .license-note{max-width:100%!important;}
 #credits .credit-card{display:flex!important;align-items:center!important;gap:13px!important;padding:15px!important;min-height:112px!important;}
 #credits .credit-avatar{width:62px!important;height:62px!important;flex:0 0 62px!important;margin:0!important;}
 #credits .license-note{padding:17px!important;min-height:112px!important;}
 #credits .gp-credit-details summary{font-size:clamp(16px,4vw,20px)!important;}
}
/* One unified entrance on both screen sizes, no preceding visible jump.
   The site's existing active-view navigation remains untouched. */

@media(prefers-reduced-motion:no-preference){
 .view.active-view .credit-card,
 .view.active-view .license-note,
 .view.active-view .guide-card,
 .view.active-view .gp-world-shell,
 .view.active-view .gp-world-shortcut-link,
 .view.active-view .gp-java-bottom,
 .view.active-view .gp-java-hint,
 .view.active-view .community-donate,
 .view.active-view .gp-community-banner,
 .view.active-view .community-lead,
 .view.active-view .social-link,
 .view.active-view .support-panel,
 .view.active-view .support-details,
 .view.active-view .gp-java-converter,
 .view.active-view #gpJavaConverter,
 .view.active-view .explain-intro,
 .view.active-view .explain-facts,
 .view.active-view .studio-mast,
 .view.active-view .panel,
 .view.active-view .hero-copy,
 .view.active-view .hero-art,
 .view.active-view .feature-ribbon,
 .view.active-view .gp-world-shortcut,
 .view.active-view .section-frame > .eyebrow,
 .view.active-view .section-frame > h2,
 .view.active-view .section-frame > .lead,
 .view.active-view #gpWorldImport > *{
   
   
   
   
   
 }
 .view.active-view .credit-card:nth-child(2),
 .view.active-view .guide-card:nth-child(2),
 .view.active-view .social-link:nth-child(2){}
 .view.active-view .credit-card:nth-child(3),
 .view.active-view .guide-card:nth-child(3),
 .view.active-view .social-link:nth-child(3){}
 .view.active-view .license-note{}
 .view.active-view .gp-world-shortcut-link:nth-child(2){}
 .view.active-view .gp-world-shell #gpWorldDrop{}
 .view.active-view .gp-world-shell #gpStructurePanel{}
}
@media(prefers-reduced-motion:reduce){.view.active-view .credit-card,.view.active-view .license-note{}}

/* GreenPrint V76: selección total y por categoría */
.gp-select-heading,.gp-select-overall{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.gp-select-heading{margin:14px 0 8px}.gp-select-heading .gp-structures-heading{margin:0}
.gp-select-overall{border:1px solid rgba(155,240,113,.42);background:rgba(117,214,83,.09);border-radius:12px;padding:12px 14px;margin-bottom:12px}
.gp-select-overall label,.gp-select-all{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:.88rem;color:#d9f7d2}
.gp-select-all{font-size:.78rem;white-space:nowrap}.gp-select-overall input,.gp-select-all input{accent-color:#a3f46b;width:17px;height:17px}
@media(max-width:540px){.gp-select-heading{align-items:flex-start}.gp-select-all{font-size:.76rem}}
