/* Umbrella France / V38 — six vrais portraits et interactions mobiles utilisables. */
.ucf-home-creators{margin-top:20px; padding:clamp(14px,2.2vw,23px)!important; border:1px solid #62363e; border-radius:18px; background:radial-gradient(circle at 100% 0,#80212a23,transparent 55%),linear-gradient(155deg,#121d28,#070d15); overflow:visible!important;}
.ucf-home-creators .portal-creators-top{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 17px;padding:0!important;min-height:0!important;}
.ucf-home-creators .portal-creators-top small{display:block;color:#ed7077;font-size:11px;font-weight:900;letter-spacing:.13em;}
.ucf-home-creators .portal-creators-top h2{margin:3px 0!important;font-size:clamp(24px,2.5vw,36px)!important;line-height:1.08!important;color:#fff;}
.ucf-home-creators .portal-creators-top p{margin:7px 0 0;color:#b6c6d3;font-size:13px;max-width:570px;line-height:1.5;}
.ucf-home-creators .portal-creators-top>button{background:#17232b;border:1px solid #c45260;color:white;border-radius:10px;padding:12px 15px;min-height:44px;font-size:11px;font-weight:900;cursor:pointer;}
.ucf-home-creators-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.ucf-home-creator{position:relative;min-width:0;display:grid;grid-template-rows:160px 1fr;border:1px solid color-mix(in srgb,var(--creator) 43%,#343f49);background:linear-gradient(160deg,color-mix(in srgb,var(--creator) 9%,#111d29),#070d15);border-radius:14px;overflow:hidden;isolation:isolate;transition:transform .2s,border-color .2s,box-shadow .2s;}
.ucf-home-creator:hover{transform:translateY(-3px);border-color:var(--creator);box-shadow:0 14px 35px #0008;}
.ucf-home-creator-photo{position:relative;overflow:hidden;background:radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--creator) 30%,#0b1420),#0a131d);}
.ucf-home-creator-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%;filter:saturate(.85) contrast(1.05);transition:transform .4s;}
.ucf-home-creator:hover img{transform:scale(1.045);}
.ucf-home-creator-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 48%,#08121ef2 100%);pointer-events:none;}
.ucf-home-creator-body{min-width:0;display:grid;grid-template-rows:auto auto 1fr auto;gap:7px;padding:12px;}
.ucf-home-creator-rank{font:800 10px/1.2 ui-monospace,SFMono-Regular,monospace;color:var(--creator);letter-spacing:.1em;}
.ucf-home-creator h3{color:#fff;font-size:clamp(16px,1.5vw,22px);line-height:1.14;margin:0;overflow-wrap:anywhere;}
.ucf-home-creator p{color:#c3d0db;font-size:12px;line-height:1.46;margin:0;}
.ucf-home-creator-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding-top:7px;border-top:1px solid #ffffff1c;}
.ucf-home-creator-socials{display:flex;align-items:center;gap:6px;}
.ucf-home-creator-socials a{width:36px;height:36px;display:grid;place-items:center;color:#edf4fb;background:#081924;border:1px solid #475a67;border-radius:8px;transition:background .2s,border-color .2s;}
.ucf-home-creator-socials a:hover{background:color-mix(in srgb,var(--creator) 22%,#081924);border-color:var(--creator);}
.ucf-home-creator-socials svg{height:19px;width:19px;}
.ucf-home-creator-bottom button{min-height:39px;display:flex;align-items:center;gap:6px;background:color-mix(in srgb,var(--creator) 24%,#111924);border:1px solid var(--creator);color:#fff;border-radius:9px;padding:8px 10px;font-size:11px;font-weight:850;cursor:pointer;}
.ucf-home-creator-bottom button span{font-size:20px;line-height:1;}
.ucf-home-creators :is(a,button):focus-visible,.ucf-creator-card :is(a,button):focus-visible{outline:3px solid white;outline-offset:2px;}
/* Le répertoire a ses propres portraits, pas un symbole UCF répété. */
.ucf-creator-card .creator-avatar{background:radial-gradient(circle,color-mix(in srgb,var(--creator) 20%,#1b2630),#090f15)!important;}
.ucf-creator-card .creator-avatar-photo{display:block!important;width:100%;height:100%;object-fit:cover;object-position:50% 27%;}
.creator-network-links a{flex:0 0 auto;}
.creator-network-links svg{width:20px!important;height:20px!important;}
@media(min-width:821px) and (max-width:1280px){.ucf-home-creators-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.ucf-home-creator{grid-template-rows:144px 1fr;}}
@media(max-width:820px){
 /* Intro : la zone centrale est occupée intégralement même sur un téléphone haut. */
 .body-grid .main-column>.home-content:not([hidden]):has(.welcome-intro){min-height:calc(100dvh - var(--header-h) - var(--footer-h) - 28px)!important;display:flex!important;align-items:stretch;justify-content:stretch;}
 .home-content .welcome-intro{min-height:calc(100dvh - var(--header-h) - var(--footer-h) - 28px)!important;height:auto!important;max-height:none!important;width:100%!important;display:flex!important;align-items:center;justify-content:center;padding-block:14px!important;}
 .home-content .welcome-intro .welcome-inner{width:100%;min-width:0;max-width:100%;}
 .home-content .welcome-intro .welcome-cinema{position:absolute!important;inset:0!important;min-height:100%!important;z-index:10;}
 .ucf-home-creators{padding:14px!important;margin-top:13px;}
 .ucf-home-creators-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 .ucf-home-creator{grid-template-rows:122px 1fr;}
 .ucf-home-creator-body{padding:10px;gap:5px;}
 .ucf-home-creator-body p{font-size:11px;}
 .ucf-home-creators .portal-creators-top{display:flex!important;}
 .ucf-home-creators .portal-creators-top h2{font-size:25px!important;}
 .ucf-home-creators .portal-creators-top>button{min-height:42px;}
 /* Les applications doivent réellement grandir : ne pas enfermer les jeux dans un cadre 590px. */
 body:has(#moduleSurface:not([hidden])) .body-grid{overflow:hidden!important;padding:9px 10px 11px!important;height:100%!important;min-height:0!important;}
 body:has(#moduleSurface:not([hidden])) .body-grid>.main-column{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
 body:has(#moduleSurface:not([hidden])) .body-grid .module-surface:not([hidden]){flex:1 1 0!important;height:100%!important;min-height:0!important;max-height:100%!important;}
 .body-grid .module-surface:not([hidden]){display:flex!important;flex-direction:column!important;height:calc(100dvh - var(--header-h) - var(--footer-h) - 20px)!important;min-height:0!important;max-height:none!important;width:100%;overflow:hidden!important;}
 .module-surface .module-titlebar{flex:0 0 auto;min-height:52px!important;gap:7px;padding:7px!important;display:flex;align-items:center;}
 .module-surface .module-titlebar strong{font-size:clamp(10px,2.7vw,13px)!important;min-width:0;overflow-wrap:anywhere;}
 .module-surface .module-titlebar .module-live{display:none!important;}
 .module-surface #moduleFrame,.module-surface .queen-gateway:not([hidden]),.module-surface .ucf-shop:not([hidden]){flex:1 1 0!important;height:auto!important;min-height:0!important;width:100%!important;max-width:100%!important;}
 .module-surface #moduleFrame{display:block;border:0!important;touch-action:pan-x pan-y;}
 .module-surface #moduleFrame[hidden]{display:none!important;}
 .module-surface .queen-gateway[hidden],.module-surface .ucf-shop[hidden]{display:none!important;}
 .ucf-mobile-play-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:37px;flex:0 0 auto;padding:7px 10px;border-radius:8px;border:1px solid #f05463;background:#291720;color:#fff;font-size:10px;font-weight:900;white-space:nowrap;cursor:pointer;}
 .module-surface.ucf-mobile-play-expanded:not([hidden]){position:fixed!important;inset:0!important;height:100dvh!important;width:100vw!important;max-width:100vw!important;max-height:100dvh!important;min-height:0!important;z-index:940!important;margin:0!important;border-radius:0!important;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)!important;background:#050c13!important;}
 .module-surface.ucf-mobile-play-expanded .module-titlebar{min-height:55px!important;}
 .module-surface.ucf-mobile-play-expanded #moduleFrame,.module-surface.ucf-mobile-play-expanded .queen-gateway:not([hidden]),.module-surface.ucf-mobile-play-expanded .ucf-shop:not([hidden]){flex:1 1 0!important;min-height:0!important;}
 body.ucf-mobile-play-is-open{overflow:hidden!important;}
 body.ucf-mobile-play-is-open .site-header,body.ucf-mobile-play-is-open .site-footer{visibility:hidden!important;}
}
@media(max-width:520px){.ucf-home-creators-grid{grid-template-columns:1fr;}.ucf-home-creator{grid-template-columns:minmax(106px,36%) minmax(0,1fr);grid-template-rows:auto;min-height:194px;}.ucf-home-creator-photo{height:auto;min-height:194px;}.ucf-home-creator-photo img{position:absolute;inset:0;}.ucf-home-creator-body{padding:13px 11px;}.ucf-home-creator h3{font-size:18px;}.ucf-home-creator-bottom button{width:100%;justify-content:space-between;}.ucf-home-creators .portal-creators-top>button{width:100%;}}
@media(max-width:360px){.ucf-home-creator{grid-template-columns:31% minmax(0,1fr);}.ucf-home-creator-bottom button{font-size:10px;}.ucf-home-creator-socials a{width:32px;height:32px;}.ucf-home-creators .portal-creators-top h2{font-size:22px!important;}}
@media(min-width:821px){.ucf-mobile-play-toggle{display:none!important;}}
@media(prefers-reduced-motion:reduce){.ucf-home-creator,.ucf-home-creator-photo img{transition:none!important;}}

/* V44 — correctifs de surface mobile exclusivement ; identité visuelle inchangée. */
@media (max-width:820px) {
  .module-surface.ucf-mobile-play-expanded:not([hidden]) {
    height:var(--ucf-play-height,100dvh)!important;
    min-height:0!important;max-height:none!important;
    display:flex!important;flex-direction:column!important;
    overflow:hidden!important;overscroll-behavior:contain;
  }
  .module-surface.ucf-mobile-play-expanded .module-titlebar {
    flex:0 0 auto!important;min-height:54px!important;
    padding-top:max(7px,env(safe-area-inset-top,0px))!important;
  }
  .module-surface.ucf-mobile-play-expanded #moduleFrame {
    display:block;flex:1 1 auto!important;height:0!important;
    min-height:0!important;max-height:none!important;
    width:100%!important;border:0!important;
  }
  .module-surface.ucf-mobile-play-expanded .queen-gateway:not([hidden]),
  .module-surface.ucf-mobile-play-expanded .ucf-shop:not([hidden]) {
    flex:1 1 auto!important;min-height:0!important;overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .module-surface .module-titlebar .ucf-mobile-play-toggle {flex:0 0 auto;white-space:nowrap;}
  .module-surface #moduleFrame {touch-action:auto!important;}
}

/* V51 : mode jeu réellement accessible sur un smartphone tourné en paysage. */
@media (pointer:coarse) and (max-height:520px){
 .ucf-mobile-play-toggle{display:inline-flex!important;align-items:center;justify-content:center;min-height:37px;flex:0 0 auto;padding:6px 8px;border-radius:8px;border:1px solid #f05463;background:#291720;color:#fff;font-size:10px;font-weight:900;white-space:nowrap}
 .module-surface.ucf-mobile-play-expanded:not([hidden]){position:fixed!important;inset:0!important;height:var(--ucf-play-height,100dvh)!important;min-height:0!important;max-height:none!important;width:100vw!important;max-width:none!important;z-index:940!important;margin:0!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#050c13!important}
 .module-surface.ucf-mobile-play-expanded .module-titlebar{flex:0 0 auto!important;min-height:42px!important;padding:4px 10px!important}
 .module-surface.ucf-mobile-play-expanded #moduleFrame{display:block!important;flex:1 1 0!important;height:0!important;min-height:0!important;width:100%!important;border:0!important}
 body.ucf-mobile-play-is-open{overflow:hidden!important}
 body.ucf-mobile-play-is-open .site-header,body.ucf-mobile-play-is-open .site-footer{visibility:hidden!important}
}
